<template>
    <div class="pages">
        <van-sticky>
            <div class="header">
                <div class="fls" @click="$router.back(-1)">
                    <img src="../../../static/images/icon-back.png" alt="">
                </div>
                <div class="centern">流失分析</div>
                <div class="fls"></div>
            </div>
        </van-sticky>
        <div class="inttopset"></div>
        <div class="iboixusb">
            <div class="iyejisd">
                <div class="wint_top">
                    <div class="fl_left">
                        <div class="top_title">商户总数</div>
                        <div class="btn_number">123</div>
                    </div>
                    <div class="fl_left">
                        <div class="top_title">昨日正常商户</div>
                        <div class="btn_number">123</div>
                    </div>
                </div>
                <div class="wint_top">
                    <div class="fl_left">
                        <div class="top_title">昨日无订单商户</div>
                        <div class="btn_number">123</div>
                    </div>
                    <div class="fl_left">
                        <div class="top_title">近30天无订单商户</div>
                        <div class="btn_number">123</div>
                    </div>
                </div>
            </div>
            <div class="tendency">近30天无订单商户走势</div>

            <div class="eacher">

            </div>

            <div class="group">
                <div class="headertop">
                    <div class="shophaerd_totle">
                        商户名称
                    </div>
                    <div class="shophaerd_totle" @click="injiaoyi()">
                        <div>最后交易时间</div>
                        <img v-if="manny == 0" src="../../../static/images/iocn-sort-down.png" alt="">
                        <img v-if="manny == 1" src="../../../static/images/iocn-sort-up.png" alt="">
                    </div>
                    <div class="shophaerd_totle">
                        团队
                    </div>
                    <div class="shophaerd_totle">
                        业务维护经理
                    </div>
                </div> 

                <div class="intngtbf" v-for="(item,index) in 6" :key="index">
                    <div class="intebvs">门店名称</div>
                    <div class="intebvs">2021.03.03</div>
                    <div class="intebvs">团队名称</div>
                    <div class="intebvs">姓名</div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    beforeCreate () {
        document.querySelector('body').setAttribute('style', 'background:#f5f5f5')
    },
    data(){
        return{
            manny:0,
        }
    },
    methods:{
        // 最后交易时间
        injiaoyi(){
            if(this.manny == 0){
                this.manny = 1
            }else{
                this.manny = 0
            }
        },
    }
}
</script>

<style scoped>
    .pages{
        width: 100%;
    }
    .header{
        width: 100%;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        box-sizing: border-box;
        background: #3288FF;
    }
    .header>.fls{
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header>.fls>img{
        width: 100%;
        height: 100%;
    }
    .centern{
        color: #FFFFFF;
        font-family: OPPOSans;
        font-weight: medium;
        font-size: 17px;
        letter-spacing: 0px;
    }

    .inttopset{
        width: 100%;
        height: 72px;
        background: #3288FF;
        position: absolute;
        top: 44px;
        z-index: -1;
    }
    .iboixusb{
        width: 100%;
        z-index: 99;
        padding: 0 16px;
        box-sizing: border-box;
    }
    .iyejisd{
        width: 100%;
        border-radius: 4px;
        background: #FFFFFF;
        padding: 16px 16px 16px 40px;
        box-sizing: border-box;
    }

    .wint_top{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
    }
    .wint_top:nth-child(2){
        margin-bottom: 0;
    }
    .fl_left{
        width: 50%;
    }
    .top_title{
        color: #828282;
        font-family: OPPOSans;
        font-weight: regular;
        font-size: 14px;
        letter-spacing: 0px;
    }
    .btn_number{
        color: #333333;
        font-family: DIN;
        font-weight: regular;
        font-size: 18px;
        letter-spacing: 0px;
        margin-top: 8px;
    }
    .tendency{
        width: 100%;
        padding: 16px 0;
        box-sizing: border-box;
        color: #333333;
        font-family: OPPOSans;
        font-weight: medium;
        font-size: 16px;
        letter-spacing: 0px;
    }
    .eacher{
        width: 100%;
        padding: 16px;
        box-sizing: border-box;
        background: #FFFFFF;
    }

    .group{
        width: 100%;
        margin-top: 16px;
        padding: 12px 8px;
        box-sizing: border-box;
        background: #FFFFFF;
        border-radius: 4px;
    }
    .headertop{
        width: 100%;
        height: 40px;
        background: #F9FAFF;
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* padding: 0 8px; */
        box-sizing: border-box;
    }
    .shophaerd_totle{
        width: 25%;
        color: #333333;
        font-family: OPPOSans;
        font-weight: regular;
        font-size: 14px;
        letter-spacing: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .shophaerd_totle>img{
        width: 12px;
        height: 12px;
        margin-left: 4px;
    }
    .shophaerd_totle:nth-child(1){
        width: 20%;
    }
    .shophaerd_totle:nth-child(2){
        width: 34%;
    }
    .shophaerd_totle:nth-child(3){
        width: 18%;
    }
    .shophaerd_totle:nth-child(4){
        width: 28%;
    }

    .intngtbf{
        width: 100%;
        height: 40px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* padding: 0 8px; */
        box-sizing: border-box;
    }

    .intebvs:nth-child(1){
        width: 20%;
    }

    .intebvs:nth-child(2){
        width: 34%;
    }
    .intebvs:nth-child(3){
        width: 18%;
    }
    .intebvs:nth-child(4){
        width: 28%;
    }

    .intebvs{
        width: 100%;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        word-break: break-all;
        color: #333333;
        font-family: OPPOSans;
        font-weight: regular;
        font-size: 14px;
        letter-spacing: 0px;
        text-align: center;
    }
</style>